package ModelLayer;
import java.util.*;

/**
 * Write a description of class Copy here.
 * 
 * @author (Group2) 
 * @version (12)
 */
public class Copy
{
    //start of instance variables;
    public int serialNumber;
    private String purchaseDate;
    private int purchasePrice;
    private String state; //available, not available -- automatically changed;
    //end of instance variables;
    public Copy(int serialNumber, String purchaseDate, int purchasePrice, String state)   //constructor of class Copy
    {
        this.serialNumber=serialNumber;
        this.purchaseDate=purchaseDate;
        this.purchasePrice=purchasePrice;
        this.state=state;
    }
    //start of set/mutator methods;
    public void setSerialNumber(int serialNumber)
    {
        this.serialNumber=serialNumber;
    }

    public void getSerialNumber()
    {
        System.out.println("Serial Number: " + serialNumber);
    }
    
    public void setPurchaseDate(String purchaseDate)
    {
        this.purchaseDate=purchaseDate;
    }
    //end of set/mutator methods;
    
    //start of get/accessor methods;
    public void getPurchaseDate()
    {
        System.out.println("Purchase Date: " + purchaseDate);
    }
    
    public void setPurchasePrice(int purchasePrice)
    {
        this.purchasePrice=purchasePrice;
    }
    
    public void getPurchasePrice()
    {
        System.out.println("Purchase Price: " + purchasePrice);
    }
    
    public void setState(String state)
    {
        this.state=state;
    }
    
    public String getState()
    {
        return state;
    }
    //end of get/accessor method;
    public void createCopy(int serialNumber, String purchaseDate, int purchasePrice)        //create an object of class Copy;
    {
        this.serialNumber=serialNumber;
        this.purchaseDate=purchaseDate;
        this.purchasePrice=purchasePrice;       
    }

    public void print()     //print out the information about the Copy;
    {
        System.out.println("Serial Number : " + serialNumber);
        System.out.println("Purchase Date : " + purchaseDate);
        System.out.println("Purchase Price: " + purchasePrice);
        System.out.println("Status: " + state);
        System.out.println("********************************");
    }
}
